{include file="public/head" /}
{include file="public/js_ueditor" /}
<!--有理想的地方，地狱都是天堂-->
<!--Copyright @ df81.com 版权所有-->
<!--作者: 南国老符 邮箱：1062129401@qq.com-->
        <!-- 左侧菜单 开始 -->
        <div class="sidebar">
            <nav>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_content" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_data" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_global" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_system" /}
                </ul>
            </nav>
        </div>
        <!-- 左侧菜单 结束 -->
    </aside>
    <!-- 左侧 结束 -->
    <!-- 右侧 开始 -->
    <div class="content-wrapper">
        <!-- 内容导航 开始 -->
        <div class="content-header py-2 bg-white mb-3">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-sm-12">
                        <ol class="breadcrumb">
                            <li>{:lang('v_global')}<i class="fas fa-angle-right mx-2"></i></li>
                            <li>{:lang('v_global')}<i class="fas fa-angle-right mx-2"></i></li>
                            <li>{:lang('v_sitemap')}</li>
                        </ol>
                    </div>
                </div>
            </div>
        </div>
        <!-- 内容导航 结束 -->
        <!-- 内容主体 开始 -->
        <section class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-12">
                        <div class="card card-outline card-success">
                            <div class="card-header"><i class="fas fa-fw fa-sitemap mr-1"></i>{:lang('v_sitemap')}</div>
                            <div class="card-body">
                                {if !empty($xml) or !empty($txt) or !empty($html) or !empty($rss)}
                                    <div class="row mb-2">
                                        <div class="col-md-3 text-right">{:lang('v_sitemap')}</div>
                                        <div class="col-md-9 h6">
                                            {if !empty($xml)}<a href="/{$xml}" target="_blank" class="text-danger mr-3">{$xml}</a>{/if}
                                            {if !empty($txt)}<a href="/{$txt}" target="_blank" class="text-danger mr-3">{$txt}</a>{/if}
                                            {if !empty($html)}<a href="/{$html}" target="_blank" class="text-danger mr-3">{$html}</a>{/if}
                                            {if !empty($rss)}<a href="/{$rss}" target="_blank" class="text-danger">{$rss}</a>{/if}
                                        </div>
                                    </div>
                                {/if}
                                <form name="form_edit" id="form_edit" method="post" action="{:url('/sitemap/index',['lang'=>$lang])}">
                                    <input type="hidden" name="lang" value="{$lang}">
                                    <div class="row form-group">
                                        <div class="col-md-3 text-right">{:lang('v_make')} {:lang('v_type')}</div>
                                        <div class="col-md-9">
                                            <label class="form-check form-check-inline">
                                                <input type="checkbox" name="type[]" value="xml" checked="checked" class="form-check-input" />sitemap.xml
                                            </label>
                                            <label class="form-check form-check-inline">
                                                <input type="checkbox" name="type[]" value="txt" checked="checked" class="form-check-input" />sitemap.txt
                                            </label>
                                            <label class="form-check form-check-inline">
                                                <input type="checkbox" name="type[]" value="rss" checked="checked" class="form-check-input" />rss.xml
                                            </label>
                                            <label class="form-check form-check-inline">
                                                <input type="checkbox" name="type[]" value="html" checked="checked" class="form-check-input" />sitemap.html
                                            </label>
                                        </div>
                                    </div>
                                    <div class="row mb-2">
                                        <div class="col-md-3 col-form-label text-right">{:lang('v_index')}</div>
                                        <div class="col-md-9">
                                            <div class="float-left mr-3">
                                                <div class="input-group input-group-sm">
                                                    <div class="input-group-prepend">
                                                        <label class="input-group-text">{:lang('v_priority')}</label>
                                                    </div>
                                                    <select name="home_priority" class="custom-select">
                                                        <option value="1" selected>1</option>
                                                        <option value="0.9">0.9</option>
                                                        <option value="0.8">0.8</option>
                                                        <option value="0.7">0.7</option>
                                                        <option value="0.6">0.6</option>
                                                        <option value="0.5">0.5</option>
                                                        <option value="0.4">0.4</option>
                                                        <option value="0.3">0.3</option>
                                                        <option value="0.2">0.2</option>
                                                        <option value="0.1">0.1</option>
                                                    </select>
                                                </div>
                                            </div>
                                            <div class="float-left">
                                                <div class="input-group input-group-sm">
                                                    <div class="input-group-prepend">
                                                        <label class="input-group-text">{:lang('v_frequency')}</label>
                                                    </div>
                                                    <select name="home_frequency" class="custom-select">
                                                        <option value="always">{:lang('v_always')}</option>
                                                        <option value="hourly">{:lang('v_hourly')}</option>
                                                        <option value="daily" selected>{:lang('v_daily')}</option>
                                                        <option value="weekly">{:lang('v_weekly')}</option>
                                                        <option value="monthly">{:lang('v_monthly')}</option>
                                                        <option value="yearly">{:lang('v_yearly')}</option>
                                                        <option value="never">{:lang('v_never')}</option>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row mb-2">
                                        <div class="col-md-3 col-form-label text-right">{:lang('v_list_page')}</div>
                                        <div class="col-md-9">
                                            <div class="float-left mr-3">
                                                <div class="input-group input-group-sm">
                                                    <div class="input-group-prepend">
                                                        <label class="input-group-text">{:lang('v_priority')}</label>
                                                    </div>
                                                    <select name="list_priority" class="custom-select">
                                                        <option value="1">1</option>
                                                        <option value="0.9">0.9</option>
                                                        <option value="0.8">0.8</option>
                                                        <option value="0.7" selected>0.7</option>
                                                        <option value="0.6">0.6</option>
                                                        <option value="0.5">0.5</option>
                                                        <option value="0.4">0.4</option>
                                                        <option value="0.3">0.3</option>
                                                        <option value="0.2">0.2</option>
                                                        <option value="0.1">0.1</option>
                                                    </select>
                                                </div>
                                            </div>
                                            <div class="float-left">
                                                <div class="input-group input-group-sm">
                                                    <div class="input-group-prepend">
                                                        <label class="input-group-text">{:lang('v_frequency')}</label>
                                                    </div>
                                                    <select name="list_frequency" class="custom-select">
                                                        <option value="always">{:lang('v_always')}</option>
                                                        <option value="hourly">{:lang('v_hourly')}</option>
                                                        <option value="daily" selected>{:lang('v_daily')}</option>
                                                        <option value="weekly">{:lang('v_weekly')}</option>
                                                        <option value="monthly">{:lang('v_monthly')}</option>
                                                        <option value="yearly">{:lang('v_yearly')}</option>
                                                        <option value="never">{:lang('v_never')}</option>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row mb-2">
                                        <div class="col-md-3 col-form-label text-right">{:lang('v_category_page')}</div>
                                        <div class="col-md-9">
                                            <div class="float-left mr-3">
                                                <div class="input-group input-group-sm">
                                                    <div class="input-group-prepend">
                                                        <label class="input-group-text">{:lang('v_priority')}</label>
                                                    </div>
                                                    <select name="sort_priority" class="custom-select">
                                                        <option value="1">1</option>
                                                        <option value="0.9">0.9</option>
                                                        <option value="0.8" selected>0.8</option>
                                                        <option value="0.7">0.7</option>
                                                        <option value="0.6">0.6</option>
                                                        <option value="0.5">0.5</option>
                                                        <option value="0.4">0.4</option>
                                                        <option value="0.3">0.3</option>
                                                        <option value="0.2">0.2</option>
                                                        <option value="0.1">0.1</option>
                                                    </select>
                                                </div>
                                            </div>
                                            <div class="float-left">
                                                <div class="input-group input-group-sm">
                                                    <div class="input-group-prepend">
                                                        <label class="input-group-text">{:lang('v_frequency')}</label>
                                                    </div>
                                                    <select name="sort_frequency" class="custom-select">
                                                        <option value="always">{:lang('v_always')}</option>
                                                        <option value="hourly">{:lang('v_hourly')}</option>
                                                        <option value="daily" selected>{:lang('v_daily')}</option>
                                                        <option value="weekly">{:lang('v_weekly')}</option>
                                                        <option value="monthly">{:lang('v_monthly')}</option>
                                                        <option value="yearly">{:lang('v_yearly')}</option>
                                                        <option value="never">{:lang('v_never')}</option>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row mb-2">
                                        <div class="col-md-3 col-form-label text-right">{:lang('v_view_page')}</div>
                                        <div class="col-md-9">
                                            <div class="float-left mr-3">
                                                <div class="input-group input-group-sm">
                                                    <div class="input-group-prepend">
                                                        <label class="input-group-text">{:lang('v_priority')}</label>
                                                    </div>
                                                    <select name="detail_priority" class="custom-select">
                                                        <option value="1">1</option>
                                                        <option value="0.9" selected>0.9</option>
                                                        <option value="0.8">0.8</option>
                                                        <option value="0.7">0.7</option>
                                                        <option value="0.6">0.6</option>
                                                        <option value="0.5">0.5</option>
                                                        <option value="0.4">0.4</option>
                                                        <option value="0.3">0.3</option>
                                                        <option value="0.2">0.2</option>
                                                        <option value="0.1">0.1</option>
                                                    </select>
                                                </div>
                                            </div>
                                            <div class="float-left">
                                                <div class="input-group input-group-sm">
                                                    <div class="input-group-prepend">
                                                        <label class="input-group-text">{:lang('v_frequency')}</label>
                                                    </div>
                                                    <select name="detail_frequency" class="custom-select">
                                                        <option value="always">{:lang('v_always')}</option>
                                                        <option value="hourly">{:lang('v_hourly')}</option>
                                                        <option value="daily" selected>{:lang('v_daily')}</option>
                                                        <option value="weekly">{:lang('v_weekly')}</option>
                                                        <option value="monthly">{:lang('v_monthly')}</option>
                                                        <option value="yearly">{:lang('v_yearly')}</option>
                                                        <option value="never">{:lang('v_never')}</option>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row mb-2">
                                        <div class="col-md-3 col-form-label text-right">{:lang('v_keyword')} {:lang('v_index')}</div>
                                        <div class="col-md-9">
                                            <div class="float-left mr-3">
                                                <div class="input-group input-group-sm">
                                                    <div class="input-group-prepend">
                                                        <label class="input-group-text">{:lang('v_priority')}</label>
                                                    </div>
                                                    <select name="keyword_priority" class="custom-select">
                                                        <option value="1">1</option>
                                                        <option value="0.9">0.9</option>
                                                        <option value="0.8">0.8</option>
                                                        <option value="0.7">0.7</option>
                                                        <option value="0.6" selected>0.6</option>
                                                        <option value="0.5">0.5</option>
                                                        <option value="0.4">0.4</option>
                                                        <option value="0.3">0.3</option>
                                                        <option value="0.2">0.2</option>
                                                        <option value="0.1">0.1</option>
                                                    </select>
                                                </div>
                                            </div>
                                            <div class="float-left">
                                                <div class="input-group input-group-sm">
                                                    <div class="input-group-prepend">
                                                        <label class="input-group-text">{:lang('v_frequency')}</label>
                                                    </div>
                                                    <select name="keyword_frequency" class="custom-select">
                                                        <option value="always">{:lang('v_always')}</option>
                                                        <option value="hourly">{:lang('v_hourly')}</option>
                                                        <option value="daily">{:lang('v_daily')}</option>
                                                        <option value="weekly" selected>{:lang('v_weekly')}</option>
                                                        <option value="monthly">{:lang('v_monthly')}</option>
                                                        <option value="yearly">{:lang('v_yearly')}</option>
                                                        <option value="never">{:lang('v_never')}</option>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row mb-2">
                                        <div class="col-md-3 col-form-label text-right">{:lang('v_keyword')} {:lang('v_list_page')}</div>
                                        <div class="col-md-9">
                                            <div class="float-left mr-3">
                                                <div class="input-group input-group-sm">
                                                    <div class="input-group-prepend">
                                                        <label class="input-group-text">{:lang('v_priority')}</label>
                                                    </div>
                                                    <select name="keyword_list_priority" class="custom-select">
                                                        <option value="1">1</option>
                                                        <option value="0.9">0.9</option>
                                                        <option value="0.8">0.8</option>
                                                        <option value="0.7">0.7</option>
                                                        <option value="0.6">0.6</option>
                                                        <option value="0.5" selected>0.5</option>
                                                        <option value="0.4">0.4</option>
                                                        <option value="0.3">0.3</option>
                                                        <option value="0.2">0.2</option>
                                                        <option value="0.1">0.1</option>
                                                    </select>
                                                </div>
                                            </div>
                                            <div class="float-left">
                                                <div class="input-group input-group-sm">
                                                    <div class="input-group-prepend">
                                                        <label class="input-group-text">{:lang('v_frequency')}</label>
                                                    </div>
                                                    <select name="keyword_list_frequency" class="custom-select">
                                                        <option value="always">{:lang('v_always')}</option>
                                                        <option value="hourly">{:lang('v_hourly')}</option>
                                                        <option value="daily">{:lang('v_daily')}</option>
                                                        <option value="weekly" selected>{:lang('v_weekly')}</option>
                                                        <option value="monthly">{:lang('v_monthly')}</option>
                                                        <option value="yearly">{:lang('v_yearly')}</option>
                                                        <option value="never">{:lang('v_never')}</option>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row mb-2 {if empty($citySite) or empty(config('global.url.city_site'))}d-none{/if}">
                                        <div class="col-md-3 col-form-label text-right">{:lang('v_city_site')}</div>
                                        <div class="col-md-9">
                                            <div class="float-left mr-3">
                                                <div class="input-group input-group-sm">
                                                    <div class="input-group-prepend">
                                                        <label class="input-group-text">{:lang('v_priority')}</label>
                                                    </div>
                                                    <select name="city_priority" class="custom-select">
                                                        <option value="1">1</option>
                                                        <option value="0.9" selected>0.9</option>
                                                        <option value="0.8">0.8</option>
                                                        <option value="0.7">0.7</option>
                                                        <option value="0.6">0.6</option>
                                                        <option value="0.5">0.5</option>
                                                        <option value="0.4">0.4</option>
                                                        <option value="0.3">0.3</option>
                                                        <option value="0.2">0.2</option>
                                                        <option value="0.1">0.1</option>
                                                    </select>
                                                </div>
                                            </div>
                                            <div class="float-left">
                                                <div class="input-group input-group-sm">
                                                    <div class="input-group-prepend">
                                                        <label class="input-group-text">{:lang('v_frequency')}</label>
                                                    </div>
                                                    <select name="city_frequency" class="custom-select">
                                                        <option value="always">{:lang('v_always')}</option>
                                                        <option value="hourly">{:lang('v_hourly')}</option>
                                                        <option value="daily" selected>{:lang('v_daily')}</option>
                                                        <option value="weekly">{:lang('v_weekly')}</option>
                                                        <option value="monthly">{:lang('v_monthly')}</option>
                                                        <option value="yearly">{:lang('v_yearly')}</option>
                                                        <option value="never">{:lang('v_never')}</option>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row mt-5">
                                        <div class="offset-md-3 col-md-9 mb-4">
                                            {if is_file(app()->getRootPath().'.env')}
                                                <button type="submit" class="btn btn-success mr-4"><i class="fa fa-check-circle mr-2"></i>{:lang('v_save')}</button>
                                            {else /}
                                                <button type="button" class="do_ajax btn btn-success mr-4" onClick="javascript:do_ajax('#form_edit','.do_ajax','{:url('/sitemap/index',['lang'=>$lang])}','');"><i class="fas fa-check-circle mr-2"></i>{:lang('v_click')} {:lang('v_make')}</button>
                                            {/if}
                                            <button type="button" class="btn btn-default" onclick="javascript:history.back(-1);"><i class="fa fa-angle-double-left mr-1"></i>{:lang('v_goback')}</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!-- 内容主体 结束 -->
    </div>
    <!-- 右侧 结束 -->
{include file="public/foot" /}
</body>
</html>